package com.paraz.cst;

/**
 * Looper for a socket.
 * 
 * @author mparaz
 *
 */
public interface CstLooper<E> {
	/**
	 * Loop using the socket.
	 * 
	 * The CstSocket can't be injected using dependency injection because it is generated at runtime.
	 * 
	 * @param cstSocket
	 */
	void loop(CstSocket cstSocket);
	
	public CstProcessor<E> getCstProcessor();

	public void setCstProcessor(CstProcessor<E> cstProcessor);
}
